#pragma once

#include <drogon/HttpController.h>
using namespace drogon;


namespace v1
{
    class Upload : public drogon::HttpController<Upload>
    {
    public:
        Upload()
        {
        };
    public:
        METHOD_LIST_BEGIN
            METHOD_ADD(Upload::UploadFile, "/file", Post);
        METHOD_LIST_END

    public:
        Task<HttpResponsePtr> UploadFile(const HttpRequestPtr req);

    };
}
